home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / ftp / archie132.lha / archie-1.3.2 / src / archie.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-15  |  2.0 KB  |  58 lines

  1. /*
  2.  * archie.h : Definitions for the programmatic Prospero interface to Archie
  3.  *
  4.  *     Written by Brendan Kehoe (brendan@cs.widener.edu), 
  5.  *                George Ferguson (ferguson@cs.rochester.edu), and
  6.  *                Clifford Neuman (bcn@isi.edu).
  7.  */
  8.  
  9. /* You can't touch this.  */
  10. #ifndef XARCHIE
  11. # define ARCHIES    "archie.ans.net (USA [NY])","archie.rutgers.edu (USA [NJ])","archie.sura.net (USA [MD])","archie.unl.edu (USA [NE])","archie.mcgill.ca (Canada)","archie.funet.fi (Finland/Mainland Europe)","archie.au (Australia)","archie.doc.ic.ac.uk (Great Britain/Ireland)"
  12. # define NARCHIES    8
  13. #endif
  14.  
  15. /*
  16.  * Default value for max hits.  Note that this is normally different
  17.  * for different client implementations.  Doing so makes it easier to
  18.  * collect statistics on the use of the various clients.
  19.  */
  20. #ifdef VMS
  21. # define    MAX_HITS    98    /* VMS Client */
  22. #else
  23. # ifdef XARCHIE
  24. #  define    MAX_HITS    99    /* X Client */
  25. # else
  26. #  define    MAX_HITS    95    /* Normal client */
  27. # endif
  28. #endif
  29.  
  30. /*
  31.  * CLIENT_VERSION may be used to identify the version of the client if 
  32.  * distributed separately from the Prospero distribution.  The version
  33.  * command should then identify both the client version and the Prospero
  34.  * version identifiers.   
  35.  */
  36. #ifdef XARCHIE
  37. # define CLIENT_VERSION    "1.3-X"
  38. #else
  39. # define CLIENT_VERSION "1.3.2"
  40. #endif
  41.  
  42. /* Procedures from user/aquery.c */
  43.  
  44. /* archie_query(host,string,max_hits,offset,query_type,cmp_proc,flags) */
  45. extern VLINK archie_query(); 
  46.  
  47. /* defcmplink(p,q) and invdatecmplink(p,q)                             */
  48. extern int defcmplink();    /* Compare by host then by filename    */
  49. extern int invdatecmplink();    /* Compare links inverted by date      */
  50.  
  51. /* Definitions for the comparison procedures                           */
  52. #define AQ_DEFCMP    defcmplink
  53. #define AQ_INVDATECMP    invdatecmplink
  54.  
  55. /* Flags                                                               */
  56. #define AQ_NOSORT    0x01    /* Don't sort                          */
  57. #define AQ_NOTRANS    0x02    /* Don't translate Archie responses    */
  58.